layui.use(['element', 'form', 'layedit', 'laydate', 'upload', 'colorpicker'], function () {
    var form = layui.form,
        layer = layui.layer,
        element = layui.element,
        layedit = layui.layedit,
        laydate = layui.laydate,
        upload = layui.upload,
        colorpicker = layui.colorpicker;


});

/**选项卡切换**/
var nav_id = $('.layui-this').data('nav');
$('#layui_nav_left_' + nav_id).show();

$('.layui-layout-left').find('.layui-nav-item').click(function () {
    var nav_id = $(this).data('nav');
    $('#layui_nav_left_' + nav_id).show().siblings().hide();
});

$('.layui-nav-child').find('dd').find('a').click(function () {
    var url = $(this).data('url');
    $('.layui-iframe').attr('src', url);
});